//1.引入http组件
let http = require('http');
//2.创建服务器
let server = http.createServer((req,res) => {
    res.writeHead(200, {
        "Content-Type": "text/html;charset=utf-8"
        });
    res.end('中国');
})
//3.绑定监听端口
server.listen(3000);